-- GENERATED SPELL FOR [Rampaging Abomination] --


function spell0_29186(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(53633,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29186', 541, 1)
end

function spell1_29186(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29186', 1000, 1)
end

function Sorts_29186(pUnit, Event)
local choix_sorts_29186 = math.random(0, 1)
if choix_sorts_29186 == 0 then
pUnit:RegisterEvent('spell0_29186', 1, 1)
end
if choix_sorts_29186 == 1 then
pUnit:RegisterEvent('spell1_29186', 1, 1)
end
end

function mob29186_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29186', math.random(1500, 3000), 1)
end

function mob29186_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29186_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29186_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29186, 1, 'mob29186_Action')
RegisterUnitEvent(29186, 2, 'mob29186_Leave')
RegisterUnitEvent(29186, 3, 'mob29186_Kill')
RegisterUnitEvent(29186, 4, 'mob29186_Die')
